package com.sky.service;

import com.sky.entity.AddressBook;

import java.util.List;

/**
 * 查询当前登录用户的所有地址信息
 */
public interface AddressService {
    List<AddressBook> showAddressBook();

    /**
     * 查询默认地址
     */
    List<AddressBook> showDefaultAddressBook();

    /**
     * 新增地址
     * @param addressBook
     */
    void addAddressBook(AddressBook addressBook);

    /**
     * 根据id查询地址簿
     * @param id
     * @return
     */
    List<AddressBook> AddressBookById(Long id);

    void updateAddressBook(AddressBook addressBook);

    void updateDefaultAddressBook(AddressBook addressBook);

    void deleteAddressBook(Long id);
}
